GtkSeparator: Set orientable style classes initially
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:39:44 +0000 (19:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:39:44 +0000 (19:39 -0400)
This was an omission, horizontal/vertical would only be set
when the orientation is changed.

gtk/gtkseparator.c

index 8c6d49254e57114e055209007534bb54383336fa..ef36d0e10cd08734820aa8e0e273a1e69d4e49e5 100644 (file)
@@ -212,6 +212,7 @@ gtk_separator_init (GtkSeparator *separator)
 
   context = gtk_widget_get_style_context (GTK_WIDGET (separator));
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_SEPARATOR);
+  _gtk_orientable_set_style_classes (GTK_ORIENTABLE (separator));
 }
 
 static void